home *** CD-ROM | disk | FTP | other *** search
- global gMasterData, gSpLocList, gSpNameList
-
- on printButton
- if iAmActivated(gMasterData) then
- getPrintData()
- set vThisField to string(getUserArea(gMasterData)) && "field"
- print(the text of member vThisField)
- else
- alert("Printing is unavailable until an activity is completed.")
- end if
- end
-
- on getPrintData
- set vThisField to string(getUserArea(gMasterData)) && "field"
- set the text of member vThisField to EMPTY
- set vTempText to EMPTY
- put "---- Who, What, Where? (Problem Matrix) ----------" & RETURN & RETURN after vTempText
- put getBigString() & RETURN & RETURN after vTempText
- put RETURN after vTempText
- set the text of member vThisField to vTempText
- end
-
- on getBigString
- set vText to EMPTY
- put the text of member "print1" & RETURN after vText
- set vJill to EMPTY
- set vAlice to EMPTY
- set vJack to EMPTY
- set vBob to EMPTY
- set vYou to EMPTY
- storeSpLocs()
- set theTotal to count(gSpLocList)
- repeat with i = 1 to theTotal
- set thePoint to getAt(gSpLocList, i)
- set theName to getAt(gSpNameList, i)
- set X to -24
- repeat with j = 1 to 10
- set X to X + 24
- case 1 of
- inside(thePoint, rect(280, 156 + X, 350, 181 + X)):
- put line j of field "print2" && theName & RETURN after vJill
- inside(thePoint, rect(350, 156 + X, 420, 181 + X)):
- put line j of field "print2" && theName & RETURN after vAlice
- inside(thePoint, rect(420, 156 + X, 490, 181 + X)):
- put line j of field "print2" && theName & RETURN after vJack
- inside(thePoint, rect(490, 156 + X, 560, 181 + X)):
- put line j of field "print2" && theName & RETURN after vBob
- inside(thePoint, rect(560, 156 + X, 630, 181 + X)):
- put line j of field "print2" && theName & RETURN after vYou
- end case
- end repeat
- end repeat
- put "Jill" & RETURN & vJill & RETURN & "Alice" & RETURN & vAlice & RETURN & "Jack" & RETURN & vJack & RETURN & "Bob" & RETURN & vBob & RETURN & "You" & RETURN & vYou after vText
- return vText
- end
-